package com.jyw.business.ast.domain.vo.web;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jyw.common.annotation.Conversion;
import com.jyw.common.enums.ConversionType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.FieldNameConstants;

import java.util.Date;

/**
 * @author 沈峻
 * @ClassName InsRectifyAstPageVo
 * @Description 异常整改资产分页返回实体
 * @Date 2023/9/27 13:49
 **/
@Data
@ApiModel("异常整改资产分页返回实体")
@FieldNameConstants
public class InsRectifyAstPageVo {
    /** ID */
    @ApiModelProperty("ID")
    private Long id;

    /** 名称 */
    @ApiModelProperty("名称")
    private String name;

    /** 资产编号 */
    @ApiModelProperty("资产编号")
    private String assetsCode;

    @ApiModelProperty("规格型号")
    private String model;

    @ApiModelProperty("资产所在位置")
    private String place;

    @ApiModelProperty("使用科室")
    @Conversion(value = ConversionType.DEPT,name = Fields.useDeptName)
    private Long useDept;

    @ApiModelProperty("使用科室名称")
    private String useDeptName;

    @ApiModelProperty("限期整改结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date rectifyEndDate;

    @ApiModelProperty("整改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date rectifyTime;

    @ApiModelProperty("整改人")
    @Conversion(value = ConversionType.USER,name = Fields.rectifyUserName)
    private Long rectifyUserId;

    @ApiModelProperty("整改人名称")
    private String rectifyUserName;
    @ApiModelProperty("巡检人")
    @Conversion(value = ConversionType.USER,name = Fields.inspectUserName)
    private Long inspectUserId;

    @ApiModelProperty("巡检人名称")
    private String inspectUserName;

    @ApiModelProperty("整改状态 -1超时未整改 0待整改 1已整改")
    private Integer isRectify;
}
